<?php

namespace common\models;

/**
 * Class UsedCarEstimateOrder
 * @package common\models
 *
 * @property Custom $custom
 * @property UsedCarEstimateOrderLog[] $usedCarEstimateOrderLogs
 */
class UsedCarEstimateOrder extends \common\models\base\UsedCarEstimateOrder
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getCustom()
    {
        return $this->hasOne(Custom::className(), ['id' => 'custom_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getUsedCarEstimateOrderLogs()
    {
        return $this->hasMany(UsedCarEstimateOrderLog::className(), ['used_car_estimate_order_id' => 'id']);
    }
}
